cmake_minimum_required(VERSION 3.10)
project(CTYDatParser)

# 设置C++标准
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 设置源文件
set(SOURCES
    database/cty_dat_parser.cpp
    test_cty_parser.cpp
)

# 设置头文件
set(HEADERS
    database/cty_dat_parser.h
)

# 创建可执行文件
add_executable(test_cty_parser ${SOURCES} ${HEADERS})

# 链接库
target_link_libraries(test_cty_parser)

# 包含目录
target_include_directories(test_cty_parser PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/database)